<?php
/**
 * Created by PhpStorm.
 * User: Raytine
 * Date: 2019/5/15
 * Time: 0:30
 */

namespace App\Admin\ExportCollection;


use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\FromCollection;

class ExcelCollection implements FromCollection
{
    protected $collection;
    public function __construct(Collection $collection)
    {

        $this->collection=$collection;

    }

    public function collection()
    {

        return $this->collection;

    }
}